package com.guicelcc.guicedemo;

import javax.inject.Inject;

import com.guicelcc.guicedemo.annotation.Output;
import com.guicelcc.guicedemo.annotation.StringProvider;

public class StringWritingApplet2 implements MyApplet {
	
	private StringProvider provider;
	private MyDestination destination;
	

	public StringWritingApplet2(MyDestination destination, StringProvider  provider) {
		super();
		this.destination = destination ;
		this.provider = provider ;
	}
	
	public void writeString() {
		destination.write(provider.get());
	}
	

	@Override
	public void run() {
		writeString();
	}

}
